const sequelize = require("./db");
const { DataTypes } = require("sequelize");
const Model = sequelize.define(
  "chinesemedicine",
  {
    name: {
      type: DataTypes.STRING,
    },
    sex: {
      type: DataTypes.STRING,
    },
    name: {
      type: DataTypes.STRING,
    },
    age: {
      type: DataTypes.INTEGER,
    },
    sno: {
      type: DataTypes.STRING,
    },
    department: {
      type: DataTypes.STRING,
    },
    pos: {
      type: DataTypes.STRING,
    },
    diagnosis_chinese: {
      type: DataTypes.STRING,
    },
    diagnosis_western: {
      type: DataTypes.STRING,
    },
    seen: {
      type: DataTypes.TEXT,
    },
    tips: {
      type: DataTypes.TEXT,
    },
  },
  {
    freezeTableName: true,
  }
);
module.exports = Model;
